// import { Navigate } from 'react-router-dom';
import Layout from './Conpoment/Home/Dashboard'
import User from './pages/User'
import Role from './pages/Role'
import Menu from './pages/Menu'
import Department from './pages/Department'
import Post from './pages/Post'
import Dictionary from './pages/Dictionary'
import Parameter from './pages/Parameter'
import Notification from './pages/Notification'
import Home from './pages/Home'
import Login from './pages/Login'
import Register from './pages/Register'
// import Login from './pages/Login'
// import PrivateRoute from './pages/Login/PrivateRoute'
// import RegisterForm from './pages/Login/RegisterForm'

const routes = [
  {
    path: '/',
    element: <Layout />,
    children: [
      { path: '/User', element: <User /> },
      { path: '/Role', element: <Role /> },
      { path: '/Menu', element: <Menu /> },
      { path: '/Department', element: <Department /> },
      { path: '/Post', element: <Post /> },
      { path: '/Dictionary', element: <Dictionary /> },
      { path: '/Parameter', element: <Parameter /> },
      { path: '/Notification', element: <Notification /> },
      { path: '/Home', element: <Home /> }

    ]
  },
  {
    path: '/login',
    element: <Login />
    // { path: 'Login', element: <Login /> },
  },
  {
    path: '/register',
    element: <Register />
  }
];

export default routes;